package com.gosling.cloudspace.common.service;


import com.gosling.cloudspace.common.entity.BaseResult;
import com.gosling.cloudspace.common.entity.dtos.OrderInfoDto;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface WxPayService {
    /**
     * 下单
     *
     * @param orderInfoDto
     * @return
     */
    BaseResult nativePay(OrderInfoDto orderInfoDto);

    /**
     * 订单查询
     *
     * @param orderId
     * @return
     */
    BaseResult orderquery(String orderId);

    /***
     * 回调
     *
     * @param request
     * @param response
     */
    void orderNotify(HttpServletRequest request, HttpServletResponse response);
}
